package com.fitso.model.bean.measure.mass;

import java.io.Serializable;
import java.math.BigDecimal;

public class MicroGram extends Mass implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private static final BigDecimal FROM_BASE = BigDecimal.valueOf(1000000);
	private static final BigDecimal TO_BASE = BigDecimal.valueOf(1.0E-6);

	public MicroGram() {
		super();
	}
	
	public MicroGram(Integer value){
		super(value);
	}
	
	public MicroGram(Double value){
		super(value);
	}

	public MicroGram(BigDecimal value) {
		super(value);
	}

	public MicroGram(Mass mass) {
		super(mass);
	}

	protected BigDecimal getToBaseUnitFactor() {
		return TO_BASE;
	}

	protected BigDecimal getFromBaseUnitFactor() {
		return FROM_BASE;
	}

	public String getUnitMark() {
		return "mcg";
	}
}
